#include "BulletLayer.h"
#include "ObjectManager.h"

BulletLayer::BulletLayer()
{

}

BulletLayer::~BulletLayer()
{

}

bool BulletLayer::init()
{
	bool bRet=false;
	do 
	{
		CC_BREAK_IF(!CCLayer::init());

		schedule(schedule_selector(BulletLayer::MoveBullet));
		bRet=true;
	} while (0);
	return bRet;
}

void BulletLayer::AddBullet()
{
	CCSprite* newBullet=CCSprite::createWithTexture(ObjectManager::sharedObjectManager()->GetBatchNode()->getTexture());

	ObjectManager::sharedObjectManager()->Add_BatchNode(newBullet);

	ObjectManager::sharedObjectManager()->Add_hinder(newBullet);
}

void BulletLayer::MoveBullet(float dt)
{

}